package Chapter6;

public class Example04 {
	public static void main(String[] args) {
		String s="itcast";
		System.out.println("replace it to cn.it "+s.replace("it", "cn.it"));
		String s1="i t c   a s t ";
		System.out.println("delete break outside: "+s1.trim());
		System.out.println("delete all: "+s1.replace(" ",""));
	}

}
